package com.xingxuecn.limit.common.model;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author Kris at 2018/9/5 17:57
 */
public class User {
    private Integer uid;
    private Integer age;
    private String sex;
    private String name;

    public User() {
    }

    public User(Integer uid, Integer age, String sex, String name) {
        this.uid = uid;
        this.age = age;
        this.sex = sex;
        this.name = name;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getAge(){
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("uid", uid)
                .append("age", age)
                .append("sex", sex)
                .append("name", name)
                .toString();
    }
}
